package com.nbjtjc.safe.mapper.safe;

import com.nbjtjc.safe.model.safe.SafeEnterprise;
import com.nbjtjc.safe.model.safe.SafeEnterprisePlan;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SafeEnterprisePlanMapper extends MyMapper<SafeEnterprisePlan> {

    @ResultMap("BaseResultMap")
    @Select("select * from safe_enterprise_plan where plan_id=#{planId}")
    List<SafeEnterprisePlan> findByPlanId(@Param("planId") int planId);


}